ga.view.appstate.menu
Class MenuState.MenuNode

java.lang.Object
  extended by com.jme3.scene.Spatial
      extended by com.jme3.scene.Node
          extended by ga.view.appstate.menu.MenuState.MenuNode
All Implemented Interfaces:
com.jme3.asset.CloneableSmartAsset, com.jme3.collision.Collidable, com.jme3.export.Savable, java.lang.Cloneable
Enclosing class:
MenuState

private class MenuState.MenuNode
extends com.jme3.scene.Node

A node for one model in the menu. Displays the image of the model.

Since:
12.08.2012
Author:
Stephan Dreyer

Nested Class Summary
 
Nested classes/interfaces inherited from class com.jme3.scene.Spatial
com.jme3.scene.Spatial.BatchHint, com.jme3.scene.Spatial.CullHint
 
Field Summary
private  GASettings gaSetting
           
private  java.lang.String name
           
private  com.jme3.math.Vector3f orgLocation
           
private  boolean selected
           
private  com.jme3.math.Vector3f targetLocation
           
private  com.jme3.font.BitmapText text
           
 
Fields inherited from class com.jme3.scene.Node
children
 
Fields inherited from class com.jme3.scene.Spatial
batchHint, controls, cullHint, frustrumIntersects, key, localLights, localTransform, parent, queueBucket, queueDistance, refreshFlags, RF_BOUND, RF_LIGHTLIST, RF_TRANSFORM, shadowMode, userData, worldBound, worldLights, worldTransform
 
Constructor Summary
MenuState.MenuNode(GASettings gaSetting)
          Instantiates a new menu node.
 
Method Summary
 void setOrgLocation(com.jme3.math.Vector3f orgLocation)
          Sets the original location for this node.
 void setSelected(boolean select)
          Sets the node selected or deselected.
 void updateLogicalState(float tpf)
           
 
Methods inherited from class com.jme3.scene.Node
attachChild, attachChildAt, breadthFirstTraversal, clone, collideWith, deepClone, depthFirstTraversal, descendantMatches, descendantMatches, descendantMatches, detachAllChildren, detachChild, detachChildAt, detachChildNamed, getChild, getChild, getChildIndex, getChildren, getQuantity, getTriangleCount, getVertexCount, hasChild, read, setLightListRefresh, setLodLevel, setMaterial, setModelBound, setTransformRefresh, swapChildren, updateGeometricState, updateModelBound, updateWorldBound, write
 
Methods inherited from class com.jme3.scene.Spatial
addControl, addLight, breadthFirstTraversal, center, checkCulling, clone, forceRefresh, getBatchHint, getControl, getControl, getCullHint, getKey, getLastFrustumIntersection, getLocalBatchHint, getLocalCullHint, getLocalLightList, getLocalQueueBucket, getLocalRotation, getLocalScale, getLocalShadowMode, getLocalToWorldMatrix, getLocalTransform, getLocalTranslation, getName, getNumControls, getParent, getQueueBucket, getShadowMode, getUserData, getUserDataKeys, getWorldBound, getWorldLightList, getWorldRotation, getWorldScale, getWorldTransform, getWorldTranslation, hasAncestor, localToWorld, lookAt, matches, move, move, removeControl, removeControl, removeFromParent, removeLight, rotate, rotate, rotateUpTo, runControlRender, scale, scale, setBatchHint, setBoundRefresh, setCullHint, setKey, setLastFrustumIntersection, setLocalRotation, setLocalRotation, setLocalScale, setLocalScale, setLocalScale, setLocalTransform, setLocalTranslation, setLocalTranslation, setName, setParent, setQueueBucket, setShadowMode, setUserData, toString, updateWorldLightList, updateWorldTransforms, worldToLocal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

targetLocation

private com.jme3.math.Vector3f targetLocation

orgLocation

private com.jme3.math.Vector3f orgLocation

selected

private boolean selected

gaSetting

private final GASettings gaSetting

name

private final java.lang.String name

text

private final com.jme3.font.BitmapText text
Constructor Detail

MenuState.MenuNode

public MenuState.MenuNode(GASettings gaSetting)
Instantiates a new menu node.

Parameters:
gaSetting - the ga setting
Since:
12.08.2012
Method Detail

setOrgLocation

public void setOrgLocation(com.jme3.math.Vector3f orgLocation)
Sets the original location for this node.

Parameters:
orgLocation - Original location.
Since:
12.08.2012

updateLogicalState

public void updateLogicalState(float tpf)
Overrides:
updateLogicalState in class com.jme3.scene.Node

setSelected

public void setSelected(boolean select)
Sets the node selected or deselected. If selected, it moves nearer to the camera.

Parameters:
select - Selected.
Since:
12.08.2012